export class ItemMineMachine {
    id = 0
    itemId = 0
    machineId = 0
    mineRate = 0

}

export let itemMineMachineData: Array<ItemMineMachine> = []

export let itemMineMachineMap = new Map<number, ItemMineMachine>()

export let loadItemMineMachineData = () => {
    for (let i of defaultData) {
        itemMineMachineData.push(Object.assign(new ItemMineMachine(), i))
    }
    for (let itemMineMachine of itemMineMachineData) {
        itemMineMachineMap.set(itemMineMachine.id, itemMineMachine)
    }
}

export let defaultData: Array<any> = [
    {
        id: 1,
        itemId: 1001,
        machineId: 2301,
        mineRate: 1
    },{
        id: 2,
        itemId: 1002,
        machineId: 2301,
        mineRate: 1
    },{
        id: 3,
        itemId: 1003,
        machineId: 2301,
        mineRate: 1
    },{
        id: 4,
        itemId: 1004,
        machineId: 2301,
        mineRate: 1
    },{
        id: 5,
        itemId: 1005,
        machineId: 2301,
        mineRate: 1
    },{
        id: 6,
        itemId: 1006,
        machineId: 2301,
        mineRate: 1
    },{
        id: 7,
        itemId: 1011,
        machineId: 2301,
        mineRate: 1
    },{
        id: 8,
        itemId: 1012,
        machineId: 2301,
        mineRate: 1
    },{
        id: 9,
        itemId: 1013,
        machineId: 2301,
        mineRate: 1
    },{
        id: 10,
        itemId: 1117,
        machineId: 2301,
        mineRate: 1
    },{
        id: 11,
        itemId: 1014,
        machineId: 2301,
        mineRate: 1
    },{
        id: 12,
        itemId: 1015,
        machineId: 2301,
        mineRate: 1
    },{
        id: 13,
        itemId: 1016,
        machineId: 2301,
        mineRate: 1
    }, {
        id: 14,
        itemId: 1007,
        machineId: 2307,
        mineRate: 1
    }, {
        id: 15,
        itemId: 1120,
        machineId: 2105,
        mineRate: 1
    }, {
        id: 16,
        itemId: 1121,
        machineId: 2105,
        mineRate: 1
    }, {
        id: 17,
        itemId: 1011,
        machineId: 2105,
        mineRate: 1
    }, {
        id: 18,
        itemId: 1000,
        machineId: 2306,
        mineRate: 1
    }, {
        id: 19,
        itemId: 1116,
        machineId: 2306,
        mineRate: 1
    }
]